
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.WorkType;

public interface WorkTypeDao extends Dao {

    /**
     * Retrieves all of the workTypes
     */
    public List getWorkTypes(WorkType workType);

    /**
     * Gets workType's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the workType's id
     * @return workType populated workType object
     */
    public WorkType getWorkType(final Long id);

    /**
     * Saves a workType's information
     * @param workType the object to be saved
     */    
    public void saveWorkType(WorkType workType);

    /**
     * Removes a workType from the database by id
     * @param id the workType's id
     */
    public void removeWorkType(final Long id);
}

